﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MShop.Core.Service.Search.SearchResultCollection>" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="content" class="ovfl">

     <div id="left" class="side fl">
            <div class="s_box sb_1">
                <h2 class="colorFF0000">
                    一口价商品推荐</h2>
                <div class="sp_tj">
                    <%=Html.Action("RecommendProduct","Product") %>                     
                </div>
            </div>
            <div id="left" class="side fl">
                <div class="s_box sb_1">
                    <h2 class="colorFF0000">
                        热卖商品</h2>
                    <div class="sp_tj">
                        <%=Html.Action("TopProduct","Product")%>          
                    </div>
                </div>
            </div>
        </div>

      <div id="right" class="main fr">
            <div class="main_ct">
                <ul class="list">
                    <%foreach (MShop.Core.Service.Search.SearchResult item in Model)
                      { %>
                    <li>
                        <h2>
                            <a href='<%=item.Path %>' target="_blank">
                                <%=item.TitleHighLighter%></a> <span class="date">
                                    <%=item.DateCreated.ToString("yyyy-MM-dd") %></span>
                        </h2>
                        <p class="info">
                            <%=item.Abstract %>
                        </p>
                    </li>
                    <%} %>
                </ul>
            </div>
               <div class="pageNav ovfl">
            <%=Html.Pager(Model.PageSize, Model.PageIndex+1, Model.TotalCount, new { key = Request["key"] })%>
            </div>
        </div>
        
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphMeta" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cphFooter" runat="server">
</asp:Content>
